package com.xieshaoping.jni;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author XieShaoping
 */
@RestController
public class LoadlibraryController {

    /**
     * @param lib 库的路径
     */
    @RequestMapping("loadlibrary")
    public String loadlibrary(String lib) {
        NativeEntity nativeEntity = new NativeEntity(lib);
        String msg = nativeEntity.getNativeMsg();
        System.out.println(msg);
        return msg;
    }

}
